home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / pcmagdoc.arc / SIZE.DOC < prev    next >
Text File  |  1988-01-19  |  2KB  |  51 lines

  1.  
  2.           SIZE (and ATSIZE)                          Art Merrill
  3.           Command(s)                     PC Magazine Vol 5, No 1
  4.         Copyright 1986 Ziff-Davis Publishing Company
  5.           ______________________________________________________
  6.  
  7.           Purpose:  Calculates the storage requirements of a file
  8.                     or group of files, based on the number of DOS
  9.                     clusters necessary to make floppy disk and
  10.                     hard disk copies.
  11.  
  12.           Format:   SIZE [d:]     (all files, default directory)
  13.                        or
  14.                     SIZE [d:][path]filename[.ext]
  15.  
  16.           Remarks:  DOS stores files in fixed-length allocation
  17.                     units called "clusters."  For floppy disks,
  18.                     the cluster size is 1024 bytes (two 512-byte
  19.                     sectors); for the PC and XT 10-Mb hard disk
  20.                     the cluster size is 4084 bytes.  On such a
  21.                     hard disk, whether a file is one byte or 4Kb
  22.                     in actual length (as reported by DIR), it
  23.                     requires the same amount (one cluster) of
  24.                     storage space.  The PC AT's 20-Mb hard disk
  25.                     is less wasteful in handling small files;
  26.                     its minimum set-aside (cluster size) is 2048
  27.                     bytes.  AT users should use ATSIZE.COM.
  28.  
  29.                     Entered without parameters, SIZE (or ATSIZE)
  30.                     returns the number of bytes used by all files
  31.                     in the current directory, the amount of space
  32.                     required to copy them to a standard (360K)
  33.                     floppy disk, and the amount of space required
  34.                     for hard disk storage.
  35.  
  36.                     Entering B:SIZE returns the same information
  37.                     for a disk in drive B:.  Pathnames and
  38.                     wildcards are supported, so you could enter
  39.  
  40.                          SIZE \PROG\*.COM
  41.  
  42.                     to learn the number of .COM files, their
  43.                     total size and storage requirements,
  44.                     contained in your \PROG subdirectory.
  45.  
  46.                     Notes:
  47.  
  48.                     1.   Requires DOS 2.0 or later.
  49.  
  50.  
  51.